package com.nageoffer.jobtrain.projects.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nageoffer.jobtrain.projects.dao.entity.UserDO;
import com.nageoffer.jobtrain.projects.dto.resp.UserPageRespDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户数据持久层
 * author：唐晨
 */
public interface UserMapper extends BaseMapper<UserDO> {
    List<UserPageRespDTO> pageUserList(@Param("phoneNumber") String phoneNumber,
                                       @Param("nickName") String nickName,
                                       Page<UserPageRespDTO> page);
}
